#!/bin/bash

gui_title="补丁libfm"


case "${CURRENT_VM_ARCH}" in
	"arm64")
        # mkdir -p /usr/local/share/locale/zh_CN/LC_MESSAGES/
        # cp -f /usr/share/locale/zh_CN/LC_MESSAGES/libfm.mo /usr/local/share/locale/zh_CN/LC_MESSAGES/libfm.mo # 这样可修复此问题
        # cd /usr/lib/aarch64-linux-gnu/
        # tar -xzf ${tools_dir}/patchs/arm64/so_patch_libfm.tar.gz ./
        # # gxmessage -title "${gui_title}"    $'\n补丁安装成功!\n'  -center

        dpkg -i ${tools_dir}/patchs/arm64/libfm4_1.3.2-1_arm64.deb
        dpkg -i ${tools_dir}/patchs/arm64/libfm-gtk4_1.3.2-1_arm64.deb
        dpkg -i ${tools_dir}/patchs/tigervnc-standalone-server_1.12.0+dfsg-8ubuntu0.23.10.1_arm64.deb
        echo "${gui_title} 安装成功"
		;;
	"amd64")
        echo "${gui_title} 安装失败"
		;;
	*)
        # gxmessage -title "${gui_title}" "运行失败, 不支持的CPU架构: ${CURRENT_VM_ARCH}"  -center
        echo "${gui_title} 安装失败, 不支持的CPU架构: ${CURRENT_VM_ARCH}"
		;;
esac

